package wh;

import java.util.Date;

import wh.exceptions.BadIDFormat;
import wh.exceptions.IDCollisionException;
import wh.exceptions.MissingReferenceException;

public class ProcessedOrder extends Order 
{
	private double totalCost;
	private Date startDate;
	private Date endDate;
	
	/**
	 * Input order that have been processed by a thread/employee successfully
	 * @param orderID
	 * @param customerID
	 * @param productID
	 * @param quantity
	 * @param customerName
	 * @throws BadIDFormat
	 * @throws IDCollisionException
	 * @throws MissingReferenceException
	 */
	public ProcessedOrder(String orderID, String customerID, String productID, 
			int quantity, String customerName) throws BadIDFormat, IDCollisionException, MissingReferenceException {
		
		super(orderID, customerID, productID, quantity, customerName);
		
	}
	
	public void setStartDate(Date start) {
		startDate = start;
	}
	
	public void setEndDate(Date end) {
		endDate = end;
	}
	
	public Date getStartDate() {
		return startDate;
	}
	
	public Date getEndDate() {
		return endDate;
	}
	
	public String getCustomerName()
	{
		return customerName;
	}
	
	public void setTotalCost(double cost) {
		totalCost = cost;
	}
	
	public double getTotalCost() {
		return totalCost;
	}

}
